#ifndef STERILIZATION_TYPE_H
#define STERILIZATION_TYPE_H

#include <QDialog>
#include "xml_process.h"
#include "sterilization_setting.h"
#include "xml_process.h"
#include "sterilization_config_data.h"
#include "sterilizing_runing.h"
#include "manual_operation.h"

namespace Ui {
    class sterilization_type;
}

class sterilization_type : public QDialog
{
    Q_OBJECT

public:
    explicit sterilization_type(QWidget *parent = 0);
    ~sterilization_type();
    Ui::sterilization_type *ui;
    bool manage;
    void enter();
    bool is_pulsing_vacuum;
public slots:
    void sterilization_parameters_edited();


private slots:

    void on_back_btn_clicked();
    void on_textiles_btn_clicked();
    void on_BDtest_btn_clicked();
    void on_Bottom_Exhaust_btn_clicked();
    void on_metals_btn_clicked();
    void on_manual_operation_btn_clicked();
    void on_liquid_btn_clicked();

    void on_user_define_btn_1_clicked();

    void on_user_define_btn_2_clicked();

    void on_user_define_btn_3_clicked();
    void button_clicked_process(QMap<QString,int > &datamap,bool isvacuum);


private:

    inline void user_define_process(  QMap<QString,int > &,bool is_pulsing_vacuum);
    inline void user_add_process(bool is_pulsing_vacuum);
  //  void read_pulse_data(sterilization_config_data&);
   // void read_bottom_data(sterilization_config_data&);
    void user_defined_interface_process();
    void show_user_define_botton_text(uint btn_num,bool &user_defined);
    void read_datamap(  QMap<QString,int > &datamap,bool isvacuum);
    sterilization_setting* pulsing_vacuum_setting;
    sterilizing_runing* sr;
    manual_operation* m;
    void data_predisplay();
};

#endif // STERILIZATION_TYPE_H
